﻿//
// GNS_PvEAllInfo.h
// MobileManageSys
//FuncTion  人机对战总玩分成
// Created by mr.l on 16/1/16.
//
//

#ifndef __MobileManageSys__GNS_PvEAllInfo__
#define __MobileManageSys__GNS_PvEAllInfo__

#include "cocos2d.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "GNS_Calendar.h"
#include "GNS_PvEAllInfoDaily.h"
USING_NS_CC;
using namespace cocostudio::timeline;
using namespace ui;

class GNS_PvEAllInfo : public Layer
{
public:
    GNS_PvEAllInfo();
    ~GNS_PvEAllInfo();
    static GNS_PvEAllInfo* createLayer();
    virtual bool init();
    CREATE_FUNC(GNS_PvEAllInfo);
    void SetNodeName(std::string CsbName);
    void AcceptSeverDate();
    void SeleLayer(int LayerNum);
    ListView * GameType;
private:
    void BtnCallBack(Ref *pSender , ui::Widget::TouchEventType type);
    void TimeButtonCallBack(Ref*pSender , ui::Widget::TouchEventType type);
    void ListViewCallBack(Ref*pSender , ui::Widget::TouchEventType type);
    void TiteChooseType(ImageView * type);
    void SelectedItemEvents(Ref*pSender,ui::ListView::EventType type);
    void ListViewBtn(Ref * pSender ,ui::Widget::TouchEventType type);

private:
    Node * pGNS_PvEAllInfo;
    GNS_PvEAllInfoDaily * pPvEAllInfoDaily;
    /**
     *UI数据
     */
    GNS_Calendar * pCalendar;//日历
    Text * TimeText;
    Text * ShowText;
    Text * GameName;
    ListView * DateListView;
    ListView * TypeListView;
    std::vector<ImageView*> TitleVec;
    ImageView * Agent;
    ImageView * Promoter;
    ImageView * account;
    Text * accdetailed;
    ImageView * accbg;
    int PlayerName;
    int typeNum;
    int SendType;
    int Mon;
    int Year;
    int Day;
};

#endif /* defined(__MobileManageSys__GNS_PvEAllInfo__) */